/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.prototype;

/**
 *
 * @author user
 */
public class Person implements Prototype {
    
    
    private String name;
    public Person(String name)
    {
        this.name = name;
    }
    @Override
    public Prototype doClone() {
        return new Person(name);
    }
    public String toString()
    {
        return ("this person name is:"+name);
    }
}
